﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class IronNpc:NPC
    {
        public string money;
        public IronNpc(string name,NPCType type,string money):base(name, type) {
            this.money = money;
        }
        public override void speak()
        {
            Console.WriteLine("NPC：{0},{1}", this.Name, this.money);
        }
    }
}
